package com.ruoyi.system.task;


import com.ruoyi.system.service.IHospitalSubscribeScheduleDaysService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component("scheduleDays")
public class ScheduleDays {

    @Autowired
    private IHospitalSubscribeScheduleDaysService hospitalSubscribeScheduleDaysService;

    /**
     * 每天生成一天日期,并清理前一天的日期
     */
    public void createTimeAndDeleteTime() {
        log.info("每天生成一天日期,并清理前一天的日期相关数据执行了.................................");
        hospitalSubscribeScheduleDaysService.saveDateTimeAndDeleteTheDayTime();
    }
}
